package cn.com.shopec.erp.product.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * @ClassName: Product1
 * @Description: 货品实体类
 * @author: duhui
 * @date 2013-5-29 下午03:09:49
 * 
 */
@Entity
@Table(name = "TBL_PRODUCT")
public class Product implements Serializable {
    private static final long serialVersionUID = 7674770875972750275L;

    /** id **/
    private String id;

    /** 货品编号 **/
    private String prodNo;

    /** 商品编号 **/
    private String commoNo;

    /** 货品条码 **/
    private String prodBarCode;

    /** 货品库存类型 (1:实库 2:虚库) **/
    private Integer inventoryType;

    /** 销售类型 (1:购销 2:代销) **/
    private Integer saleType;

    /** 已税零售价 **/
    private Double salePrice;

    /** 箱包装规格 **/
    private String casePakgSize;

    /** 规格信息 **/
    private String specification;

    /** 删除标志 **/
    private Integer deleteFlag;

    /** 创建时间 **/
    private String createTime;

    /** 更新时间 **/
    private String updateTime;

    /** 未税销售价 **/
    private Double unSalePrice;

    /** 税率 **/
    private Double prodRate;

    /** 最低订货数量 **/
    private Integer buyNum;

    /** 货品单位 **/
    private String prodUnit;

    @GenericGenerator(name = "generator", strategy = "uuid.hex")
    @Id
    @GeneratedValue(generator = "generator")
    @Column(name = "ID", unique = true, nullable = false, length = 32)
    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "PROD_NO")
    public String getProdNo() {
        return this.prodNo;
    }

    public void setProdNo(String prodNo) {
        this.prodNo = prodNo;
    }

    @Column(name = "COMMO_NO")
    public String getCommoNo() {
        return this.commoNo;
    }

    public void setCommoNo(String commoNo) {
        this.commoNo = commoNo;
    }

    @Column(name = "PROD_BAR_CODE")
    public String getProdBarCode() {
        return this.prodBarCode;
    }

    public void setProdBarCode(String prodBarCode) {
        this.prodBarCode = prodBarCode;
    }

    @Column(name = "INVENTORY_TYPE")
    public Integer getInventoryType() {
        return this.inventoryType;
    }

    public void setInventoryType(Integer inventoryType) {
        this.inventoryType = inventoryType;
    }

    @Column(name = "SALE_TYPE")
    public Integer getSaleType() {
        return this.saleType;
    }

    public void setSaleType(Integer saleType) {
        this.saleType = saleType;
    }

    @Column(name = "SALE_PRICE")
    public Double getSalePrice() {
        return this.salePrice;
    }

    public void setSalePrice(Double salePrice) {
        this.salePrice = salePrice;
    }

    @Column(name = "SPECIFICATION")
    public String getSpecification() {
        return this.specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    @Column(name = "DELETE_FLAG")
    public Integer getDeleteFlag() {
        return this.deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    @Column(name = "CASE_PACK_SIZE")
    public String getCasePakgSize() {
        return this.casePakgSize;
    }

    public void setCasePakgSize(String casePakgSize) {
        this.casePakgSize = casePakgSize;
    }

    @Column(name = "CREATE_TIME")
    public String getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Column(name = "UPDATE_TIME")
    public String getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Column(name = "UN_SALE_PRICE")
    public Double getUnSalePrice() {
        return this.unSalePrice;
    }

    public void setUnSalePrice(Double unSalePrice) {
        this.unSalePrice = unSalePrice;
    }

    @Column(name = "PROD_RATE")
    public Double getProdRate() {
        return this.prodRate;
    }

    public void setProdRate(Double prodRate) {
        this.prodRate = prodRate;
    }

    @Column(name = "BUY_NUM")
    public Integer getBuyNum() {
        return this.buyNum;
    }

    public void setBuyNum(Integer buyNum) {
        this.buyNum = buyNum;
    }

    @Column(name = "PROD_UNIT")
    public String getProdUnit() {
        return this.prodUnit;
    }

    public void setProdUnit(String prodUnit) {
        this.prodUnit = prodUnit;
    }

}
